<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加版块</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
<style>
.getcxaddres{margin-left: 10px; padding: 6px 12px; cursor: pointer; padding-top: 5px; border: solid 1px #cccccc; background-color: #e7e7e7; color: #000000; border-radius: 2px; overflow: hidden;}
.jiuma .jiumalist li h4{margin-top:8px;}
</style>
</head>

<body>
<!-- 图片资源开始 -->
<div class="floatBackground" id="floatBackground" style="display: none;">
	<div class="bounced">
		<label class="closeImgResurces">X</label>
		<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
	</div>
</div>
<assign name="plateid" value="$Think.get.id"/>
<div class="main-frame">
	<div class="position">华人码 > 添加版块</div>
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="form1" action='<if condition="$edit eq 1">{:U('Manages/plateedit')}<else/>{:U('Manages/plateadd')}</if>' method="post" class="form-inline">
				<input type="hidden" name="typeid" value="{$Think.get.typeid}" />
				<input type="hidden" name="editid" value="{$p_resutl['id']}" />
				<input type="hidden" name="emid" value="{$Think.get.id}" />
				<ul>
					<if condition="$pedit neq 'true'">
					<li>
						<label class="fl tle">版块选择：</label>
				    	<span class="fl cnt">
					    	<select <if condition="$edit neq 1">disabled</if> name="mid" class="template form-control" style="width: 180px;">
								<option value='0'>/</option>
								<volist name="plate_list" id="list">
									<option <if condition="($list['id'] eq $p_resutl['mid']) or ($list['id'] eq $plateid)">selected</if> value='{$list['id']}'>{$list['plate_name']}</option>
									<volist name="list['subplate']" id="list1">
										<option <if condition="($list1['id'] eq $p_resutl['mid']) or ($list1['id'] eq $plateid)">selected</if> value='{$list1['id']}'>——{$list1['plate_name']}</option>
										<volist name="list1['subplates']" id="list2">
											<option <if condition="($list2['id'] eq $p_resutl['mid']) or ($list2['id'] eq $plateid)">selected</if> value='{$list2['id']}'>————{$list2['plate_name']}</option>
										</volist>
									</volist>
								</volist>
							</select>
				    	</span>
					</li>
					</if>
					<li>
						<label class="fl tle">版块名称：</label>
						<span class="fl cnt"><input name="plate_name" class="form-control" placeholder="分类名称" value="{$p_resutl['plate_name']}"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">版块图片：</label>
						<span class="fl cnt"><input name="plate_img" id="plate_img" class="form-control" value="{$p_resutl['plate_img']}" placeholder="版块图片路径" style="width: 450px;"><a class="browse" f='plate_img'>浏览···</a></span>
					</li>
					<if condition="$p_resutl['plate_img'] neq ''">
					<li style="margin-top: -15px;">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><img src="{$p_resutl['plate_img']}" height="60" /></span>
					</li>
					</if>
					<li>
						<label class="fl tle">外部链接：</label>
						<span class="fl cnt"><input name="plate_link" class="form-control" placeholder="外部链接" value="{$p_resutl['plate_link']}"></span>
					</li>
					<li>
						<label class="fl tle">版块排序：</label>
						<span class="fl cnt"><input name="plate_sort" class="txtlength200" style="width: 100px;" placeholder="0" value="{$p_resutl['plate_sort']}"></span>
					</li>
					<li>
						<label class="fl tle">视频地址：</label>
						<span class="fl cnt"><textarea name="videopath" class="form-control" placeholder="视频地址" style="width: 900px; height:60px;">{$p_resutl['videopath']}</textarea></span>
					</li>
					<script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
					<script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.all.min.js"> </script>
					<script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/lang/zh-cn/zh-cn.js"></script>
					<li>
						<label class="fl tle">内容介绍：</label>
						<span class="fl cnt">
							<textarea name="content" id="editor" style="width: 900px; height:350px; overflow: hidden;">{$p_resutl['content']}</textarea>
							<script>var ue = UE.getEditor('editor');</script>
						</span>
					</li>
					<li>
						<label class="fl tle">固定资源：</label>
						<span class="fl cnt"><input type="checkbox" name="isfixation" <if condition="$p_resutl['isfixation'] eq 1">checked</if> class="extendedattr" style="margin-top: 9px;" value="1" /></span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="确 定" class="submitbtn" /> <a href="{:U('plate')}">返回</a></span>
					</li>
				</ul>
			</form>
		</div>
		<div class="obj-previewimg">
			<div class="instructions">
				<b>特别说明：</b><br>
				菜单为无限级结构，根据需要在创建菜单的时候选择相应的父级菜单，如本身为一级菜单则按默认值保存。<br>
				<p class="advice">建议：菜单标题不易过长，以精、准为佳。</p>
			</div>
		</div>
	</div>

</div>
</body>
</html>
